package me.ree.zkproduct.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Slf4j
@Configuration
public class TestInitConfig2 {

    @Bean(initMethod = "testInitMethod2")
    public TestInitBean testInitBean2() {
        log.info("TestInitConfig2 testInitBean2 exec......");
        TestInitBean bean = new TestInitBean();
        // 设置TestInitBean的属性或其他初始化配置...
        return bean;
    }

    @Bean(initMethod = "testInitMethod1")
    public TestInitBean testInitBean() {
        log.info("TestInitConfig2 testInitBean exec......");
        TestInitBean bean = new TestInitBean();
        // 设置TestInitBean的属性或其他初始化配置...
        return bean;
    }
}
